package com.mall.product.remote;

import com.mall.common.core.domain.Result;
import com.mall.product.common.domain.PmsShop;
import com.mall.product.common.domain.PmsSkuInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "mall-product",contextId = "PmsSkuInfoRemote")
public interface PmsSkuInfoRemote {

    /**
     * 获取sku信息详细信息
     */
    @GetMapping("/skuinfo/{skuId}")
    public Result<PmsSkuInfo> getInfo(@PathVariable("skuId") Long skuId);


    /**
     * 根据shopId获取shop对象
     */
    @GetMapping("/skuinfo/findShopByShopId/{shopId}")
    public Result<PmsShop> findShopByShopId(@PathVariable("shopId") Long shopId);
}
